// copyright 1993 Michael B. Johnson; some portions copyright 1994, MIT
// see COPYRIGHT for reuse legalities
//

#import "WW3DShape.h"
#import "WW3DShapeCell.h"

@implementation WW3DShapeCell


+ initialize { [WW3DShapeCell setVersion:1]; return self; }
////////////////////////////////////////////////////////
//
- init
{
  [super init];
  shape = nil;

  return self;
}
- initTextCell:(const char *)aString
{
  [super initTextCell:aString];
  shape = nil;

  return self;
}
//
- awake
{
  [super awake];
  return self;
}

- endEditing:textObject
{
  [super endEditing:textObject];
  [shape setShapeName:[self stringValue]];
  [self setEditable:NO];

  return self;
}
//
- setShape:aShape { shape = aShape; return self; }
//
- shape { return shape; }

- write:(NXTypedStream *)stream 
{
   [super write:stream];
   return self;
}
//
- read:(NXTypedStream *)stream 
{
   int version;

   [super read:stream];

   version = NXTypedStreamClassVersion(stream, "WW3DShapeCell");
   if (version == 1)
   {  
   }
   return self;
}


@end
